package com.wicket.okrbff.biz.service.dto.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffUsersUnionDto
 * @使用场景
 */
@Data
public class BffUsersUnionDto implements Serializable {

    /**
     * 联盟应用对象类型:
     */
    @ApiModelProperty("联盟应用对象类型")
    private String unionAppObjectType;

    /**
     * 联盟应用用户ID:
     */
    @ApiModelProperty("联盟应用用户ID")
    private String unionAppObjectId;

    /**
     * 联盟应用用户名:
     */
    @ApiModelProperty("联盟应用用户名")
    private String unionAppObjectName;

    /**
     * 激活时间:
     */
    @ApiModelProperty("激活时间")
    private Date activetionTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffUsersUnionDto that = (BffUsersUnionDto) o;
      return  unionAppObjectType == that.unionAppObjectType&&unionAppObjectId == that.unionAppObjectId&&unionAppObjectName == that.unionAppObjectName&&activetionTime == that.activetionTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), unionAppObjectType,unionAppObjectId,unionAppObjectName,activetionTime);
    }

}
